<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue入门案例</title>
</head>
<body>
<h1>abcdefg</h1>
<div id="aaa">
    <ul>
        <li v-for="book in books">{{book.name}}</li>
    </ul>
</div>
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<script>
    new Vue({
        el: '#aaa',
        data: {
            books: [
                {name: '《Vue.js实战》'},
                {name: '《JavaScript语言精辟》'},
                {name: '《JavaScript高级程序设计》'}
            ]
        }
    })
</script>
</body>
</html>